package com.hd.crdao.view;

/**
 *
 *@author Programming
 *@date 2017/5/25 0025
 */

public class ExpandEditText /*extends LinearLayout */{
/*
    public TextView mExpandET_leftText;
    public EditText mExpandET_editText;
    public ImageView mExpandET_rightArrow;

    public ExpandEditText(Context context) {
        this(context, null);
    }

    public ExpandEditText(Context context, AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public ExpandEditText(Context context, AttributeSet attrs, int defStyleAttr) {

        super(context, attrs, defStyleAttr);
        View view = LayoutInflater.from(context).inflate(R.layout.expandedittext, this, true);

        mExpandET_leftText = (TextView) view.findViewById(R.id.expandET_leftText);
        mExpandET_editText = (EditText) view.findViewById(R.id.expandET_rightEt);
        mExpandET_rightArrow = (ImageView) view.findViewById(R.id.expandET_right_arrow);


        TypedArray styledAttributes = context.obtainStyledAttributes(attrs, R.styleable.expandedittext);
        //设置文本
        String expandLeftText = styledAttributes.getString(R.styleable.expandedittext_etlefttext);
        String expandEdittext = styledAttributes.getString(R.styleable.expandedittext_etedittext);
        //显示
        boolean expandLeftTextDispalys = styledAttributes.getBoolean(R.styleable.expandedittext_etlefttextdisplay, false);
        boolean expandRightArrowDisplays = styledAttributes.getBoolean(R.styleable.expandedittext_etrightarrowdisplay, false);


        styledAttributes.recycle();

        //设置属性
        mExpandET_leftText.setText(expandLeftText);
        mExpandET_editText.setHint(expandEdittext);


        //显示属性设置
        if (expandLeftTextDispalys) {
            mExpandET_leftText.setVisibility(View.VISIBLE);
        } else {
            mExpandET_leftText.setVisibility(View.GONE);
        }
        if (expandRightArrowDisplays) {
            mExpandET_rightArrow.setVisibility(View.VISIBLE);
        } else {
            mExpandET_rightArrow.setVisibility(View.GONE);
        }


    }

    public EditText getExpandET_editText() {
        return mExpandET_editText;
    }

    public void setExpandET_editText(EditText expandET_editText) {
        mExpandET_editText = expandET_editText;
    }

    public TextView getExpandET_leftText() {
        return mExpandET_leftText;
    }

    public void setExpandET_leftText(TextView expandET_leftText) {
        mExpandET_leftText = expandET_leftText;
    }

    public ImageView getExpandET_rightArrow() {
        return mExpandET_rightArrow;
    }

    public void setExpandET_rightArrow(ImageView expandET_rightArrow) {
        mExpandET_rightArrow = expandET_rightArrow;
    }*/
}
